package gae.testjig.dto;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.KeyFactory;

@PersistenceCapable
public class ContactGroup {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key contactGroupKey;

	@Persistent private String name;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setContactGroupKey(Key contactGroupKey) {
		this.contactGroupKey = contactGroupKey;
	}
	public Key getContactGroupKey() {
		return contactGroupKey;
	}
	public String getContactGroupKeyString() {
		return KeyFactory.keyToString(contactGroupKey);
	}

}
